﻿using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CPPProject.CPP.Dto
{
    [AutoMapTo(typeof(CPPPart))]
    public class CreateCPPPartDto
    {
        /// <summary>
        /// 所属公司
        /// </summary>
        ///public long CompanyId { get; set; }
        /// <summary>
        /// 资产编码
        /// </summary>

        public string PartNum { get; set; }
        /// <summary>
        /// 资产名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 资产描述
        /// </summary>
        [MaxLength(500)]
        public string Description { get; set; }
        /// <summary>
        /// 资产图片，存储在Attachment附件表中
        /// </summary>
        public string ImageUrl { get; set; }
        /// <summary>
        /// 资产数量
        /// </summary>
        ///public decimal Quantity { get; set; }
        /// <summary>
        /// 资产价值
        /// </summary>
        public decimal MtlCost { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [MaxLength(10)]
        public string IUM { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
    }
}
